home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Interfaces / Universal Interfaces 2.0a3 / Universal AIncludes / ConnectionTools.a < prev    next >
Encoding:
Text File  |  1994-11-11  |  3.3 KB  |  128 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ConnectionTools.a
  3. ;
  4. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  5. ;                All rights reserved.
  6. ;
  7. ;    Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.  
  17.     IF &TYPE('__CONNECTIONTOOLS__') = 'UNDEFINED' THEN
  18. __CONNECTIONTOOLS__ SET 1
  19.  
  20.  
  21.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  22.     include 'Windows.a'
  23.     ENDIF
  24. ;        include 'Memory.a'                                            ;
  25. ;            include 'Types.a'                                        ;
  26. ;                include 'ConditionalMacros.a'                        ;
  27. ;            include 'MixedMode.a'                                    ;
  28. ;        include 'Quickdraw.a'                                        ;
  29. ;            include 'QuickdrawText.a'                                ;
  30. ;        include 'Events.a'                                            ;
  31. ;            include 'OSUtils.a'                                    ;
  32. ;        include 'Controls.a'                                        ;
  33. ;            include 'Menus.a'                                        ;
  34.  
  35.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  36.     include 'Dialogs.a'
  37.     ENDIF
  38. ;        include 'Errors.a'                                            ;
  39. ;        include 'TextEdit.a'                                        ;
  40.  
  41.     IF &TYPE('__CONNECTIONS__') = 'UNDEFINED' THEN
  42.     include 'Connections.a'
  43.     ENDIF
  44. ;        include 'CTBUtilities.a'                                    ;
  45. ;            include 'StandardFile.a'                                ;
  46. ;                include 'Files.a'                                    ;
  47. ;            include 'AppleTalk.a'                                    ;
  48.  
  49. ; messages for DefProc 
  50. cmInitMsg                        EQU        0
  51. cmDisposeMsg                    EQU        1
  52. cmSuspendMsg                    EQU        2
  53. cmResumeMsg                        EQU        3
  54. cmMenuMsg                        EQU        4
  55. cmEventMsg                        EQU        5
  56. cmActivateMsg                    EQU        6
  57. cmDeactivateMsg                    EQU        7
  58. cmIdleMsg                        EQU        50
  59. cmResetMsg                        EQU        51
  60. cmAbortMsg                        EQU        52
  61. cmReadMsg                        EQU        100
  62. cmWriteMsg                        EQU        101
  63. cmStatusMsg                        EQU        102
  64. cmListenMsg                        EQU        103
  65. cmAcceptMsg                        EQU        104
  66. cmCloseMsg                        EQU        105
  67. cmOpenMsg                        EQU        106
  68. cmBreakMsg                        EQU        107
  69. cmIOKillMsg                        EQU        108
  70. cmEnvironsMsg                    EQU        109
  71. ; new connection tool messages for ctb 1.1 
  72. cmNewIOPBMsg                    EQU        110
  73. cmDisposeIOPBMsg                EQU        111
  74. cmGetErrorStringMsg                EQU        112
  75. cmPBReadMsg                        EQU        113
  76. cmPBWriteMsg                    EQU        114
  77. cmPBIOKillMsg                    EQU        115
  78. ;    messages for validate DefProc    
  79. cmValidateMsg                    EQU        0
  80. cmDefaultMsg                    EQU        1
  81. ;    messages for Setup DefProc    
  82. cmSpreflightMsg                    EQU        0
  83. cmSsetupMsg                        EQU        1
  84. cmSitemMsg                        EQU        2
  85. cmSfilterMsg                    EQU        3
  86. cmScleanupMsg                    EQU        4
  87. ;    messages for scripting defProc    
  88. cmMgetMsg                        EQU        0
  89. cmMsetMsg                        EQU        1
  90. ;    messages for localization defProc    
  91. cmL2English                        EQU        0
  92. cmL2Intl                        EQU        1
  93.  
  94. ; private data constants 
  95. cdefType                        EQU        'cdef'                ; main connection definition procedure 
  96. cvalType                        EQU        'cval'                ; validation definition procedure 
  97. csetType                        EQU        'cset'                ; connection setup definition procedure 
  98. clocType                        EQU        'cloc'                ; connection configuration localization defProc 
  99. cscrType                        EQU        'cscr'                ; connection scripting defProc interfaces 
  100. cbndType                        EQU        'cbnd'                ; bundle type for connection 
  101. cverType                        EQU        'vers'
  102.  
  103. CMDataBuffer             RECORD    0
  104. thePtr                     ds.l    1
  105. count                     ds.l    1
  106. channel                     ds.w    1
  107. flags                     ds.w    1
  108. sizeof                     EQU    12
  109.                         ENDR
  110.  
  111. CMCompletorRecord         RECORD    0
  112. async                     ds.b    1
  113. filler                     ds.b    1
  114. completionRoutine         ds.l    1
  115. sizeof                     EQU    6
  116.                         ENDR
  117.  
  118. ;    Private Data Structure    
  119. CMSetupStruct             RECORD    0
  120. theDialog                 ds.l    1
  121. count                     ds.w    1
  122. theConfig                 ds.l    1
  123. procID                     ds.w    1                                    ; procID of the tool    
  124. sizeof                     EQU    12
  125.                         ENDR
  126.  
  127.     ENDIF ; __CONNECTIONTOOLS__
  128.